<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/layui.css" rel="stylesheet">
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-1 control-label">是否可见：</label>
                            <div class="col-sm-11">
                                <div class="onoffswitch">
                                    <input id="isactive" name="isactive"
                                           type="checkbox"    value="1" checked="checked"    class="onoffswitch-checkbox" >
                                    <label class="onoffswitch-label" 	for="isactive">
                                        <span class="onoffswitch-inner"></span>
                                        <span class="onoffswitch-switch"></span>
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">商品类型：</label>
                            <div class="col-sm-11">
                                <input id="selectCategorys" class="btn btn-warning" type="button"  value="选择类型">
                                <div id="categorys" style="display: flex"></div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">短标题：</label>
                            <div class="col-sm-11">
                                <input id="titleShort" name="titleShort" maxlength="60"
                                       class="form-control required" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">长标题：</label>
                            <div class="col-sm-11">
                                <input id="titleLong" name="titleLong"  maxlength="100"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">原价：</label>
                            <div class="col-sm-11">
                                <input id="price" name="price"  class="form-control required"
                                       type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">打折价：</label>
                            <div class="col-sm-11">
                                <input id="sales" name="sales" class="form-control "
                                       type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">商品库存：</label>
                            <div class="col-sm-11">
                                <input id="totalStock" name="totalStock" class="form-control required" type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">服务条款：</label>
                            <div class="col-sm-11">
                                <textarea id="service" rows="6" maxlength="300" name="service"  class="form-control" ></textarea>
                             <!--   <input id="service" name="service" class="form-control"
                                       type="hidden">
                                <div class="ibox-content no-padding">
                                    <div id="content_service" class="summernote"></div>
                                </div>-->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-1 control-label">商品详情：</label>
                            <div class="col-sm-11">
                                <div class="ibox-content no-padding">
                                    <div id="content_detail" class="summernote"></div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="/js/layui.js"></script>
<script type="text/javascript" src="/js/appjs/shop/product/add.js">
</script>
</body>
</html>
